WARNING: This program has a syntax error, which means we need to fix it! Empty if statements cannot run!

RULE: If statements must have code indented inside which will run if the test statement is true.

  • Click Run and read the error message.
  • Debug this program so the sprite says "I love strawberry ice cream!" if the user answers strawberry.
  • Use a Say command and change the string to complete the if-statement block.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)